package com.api.sso;

import com.edu.entity.HfdClassSkuInfo;
import com.edu.entity.HfdUserInfo;
import com.edu.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>title: com.api.user</p>
 * author 曾宪霖
 * description:
 */
@Component
//远程调用
@FeignClient("edu-sso")
@RequestMapping("/sso")
public interface SSOClient {

    /**
     * 查询所有用户信息
     *
     * @return
     */
    @RequestMapping("queryHfdUser")
    Result queryHfdUser();

    /**
     * 增加用户
     *
     * @param hfdUserInfo
     * @return
     */
    @RequestMapping("addHfdUser")
    Result addHfdUser(@RequestBody HfdUserInfo hfdUserInfo);

    /**
     * 根据user_id删除用户
     *
     * @param hfdUserInfo
     * @return
     */
    @RequestMapping("deleteHfdUserById")
    Result deleteHfdUserById(@RequestBody HfdUserInfo hfdUserInfo);

    /**
     * 根据user_id修改用户信息
     *
     * @param hfdUserInfo
     * @return
     */
    @RequestMapping("updateHfdUserById")
    Result updateHfdUserById(@RequestBody HfdUserInfo hfdUserInfo);

}
